<div class='fui-page  fui-page-current article-list-page' ng-if="pagedata.op=='list'">
	<div class='fui-content' style="margin-bottom:2.5rem">
			<div class="fui-article-list template-2">
				<div class="fui-tab fui-tab-danger">
						<a ng-class="{'external':1,'active':pagedata.group_id == 0}" href="javascript:;" ng-click="pagedata.group_id=0;tool.get_list('jy_yangshop/lvyou/list/group_id=0',true)">全部分类</a>
						<a ng-repeat="item in pagedata.groups" ng-class="{'external':1,'active':pagedata.group_id == item.id}" href="javascript:;" ng-click="pagedata.group_id=item.id;tool.get_list('jy_yangshop/lvyou/list/group_id='+item.id,true)">{{item.title}}</a>						
				</div>
				<div class="fui-list-group merchgroup" style="background:none" ng-repeat="item in pagedata.list">
					<div ng-click="access_json('/lvyou/detail/id='+item.id)" style="height:8rem;margin:5px 10px;background:url('{{tomedia(item.image)}}') no-repeat 50%;background-size: cover;border-radius: 5px;">
						<div style="height:8rem;position:relative;border-radius: 5px;">
							<div style="position:absolute;width:100%;bottom:0;padding:0.2rem;color:#FFFFFF;background-color:rgba(0, 0, 0, 0.3);filter:Alpha(opacity=50);">
								{{item.title}}
							</div>
						</div>
					</div>
				</div> 
			</div>
	    <div class="fui-message fui-message-popup in content-empty" ng-show="!pagedata.list || pagedata.list.length<=0" style="margin-top: 0; position: relative; height: auto; background: none;">
				<div class="icon">
					<i class="icon icon-information"></i>
				</div>
				<div class="content">未找到相关文章~</div>
		</div>
		
	</div>
</div>

<div class='fui-page  fui-page-current article-index-page' ng-if="pagedata.op=='detail'">
	<div class='fui-content' style="margin-bottom:2.5rem">
		<div class="fui-article-page">
			<div class="fui-article-title">{{pagedata.item.title}}</div>
			<div ng-class="{'fui-article-content':1,'noread':pagedata.item.noread}" ng-bind-html="trust(pagedata.item.content)"></div>
		</div>
	</div>
</div>
<div ng-include="sys_html('common/pluginnav',true)"></div>
<script>
	require(['bootstrap', 'hammer'], function($, Hammer){
		$('#carousel-container').carousel();
		var mc = new Hammer($('#carousel-container').get(0));
		mc.on("panleft", function(ev) {
			$('#carousel-container').carousel('next');
		});
		mc.on("panright", function(ev) {
			$('#carousel-container').carousel('prev');
		});
	});
</script>
<script>
if(scope.pagedata.op=='list'){
	scope.tool.get_list('jy_yangshop/lvyou/list/',true);
	scope.pagedata.scroll_bottom=function(){
		scope.tool.get_list('jy_yangshop/lvyou/list/');
	}
}
</script>